package com.example.behaviour.service;

import com.example.behaviour.pojos.Comment;
import com.example.model.common.dtos.ResponseResult;
import com.example.model.user.pojos.ApUser;
import org.springframework.stereotype.Service;

import java.text.ParseException;

@Service
public interface CommentService {

    public ResponseResult saveComment(Comment comment, ApUser apUser);

    public ResponseResult findCommentsByUserId(Integer userId);

    public ResponseResult findCommentsByArticleId(String articleId,String userId);

    public ResponseResult likeComment(String id,Integer userId) throws ParseException;

    public ResponseResult unLikeComment(String id,Integer userId) throws ParseException;

    public ResponseResult getCommentNum(Integer userId);

    public ResponseResult getOtherCommentNum(String name);

    public ResponseResult delComment(String id);

    public ResponseResult getReplyData(Integer id);
}
